<template>
    <div style="margin: 0 400px;">
        <Slider v-model="value1" show-input></Slider>
        <Slider v-model="value2" range></Slider>
        <Slider v-model="value3" range disabled></Slider>
        {{ value1 }}{{value2}}
        <div @click="value1 = 13">change value1</div>
        <br>
        <Slider v-model="value9" :tip-format="format"></Slider>
        <Slider v-model="value10" :tip-format="hideFormat"></Slider>
    </div>
</template>
<script>
    export default {
        data () {
            return {
                value1: 25,
                value2: [20, 50],
                value3: [20, 50],
                value9: 25,
                value10: 25
            }
        },
        methods: {
            format (val) {
                return '进度' + val + '%';
            },
            hideFormat () {
                return null;
            }
        }
    }
</script>
